import request from '@/utils/request'

// 查询房间朝向管理列表
export function listOrientations(query) {
  return request({
    url: '/orientations/orientations/list',
    method: 'get',
    params: query
  })
}

// 查询房间朝向管理详细
export function getOrientations(orientationId) {
  return request({
    url: '/orientations/orientations/' + orientationId,
    method: 'get'
  })
}

// 新增房间朝向管理
export function addOrientations(data) {
  return request({
    url: '/orientations/orientations',
    method: 'post',
    data: data
  })
}

// 修改房间朝向管理
export function updateOrientations(data) {
  return request({
    url: '/orientations/orientations',
    method: 'put',
    data: data
  })
}

// 删除房间朝向管理
export function delOrientations(orientationId) {
  return request({
    url: '/orientations/orientations/' + orientationId,
    method: 'delete'
  })
}
